<?
//inculde即可以使用data数据。本页所有的data数据，倾在controller都处理好
include_once("../../../common/modules/checkA.php");
include_once("../../../../config.php");
include_once("../controller/coupon_send_list.php");


?>



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <link href="../css/<? echo $theme_folder ?>/user.css" rel="stylesheet" type="text/css"/>
    <?php include ROOT_PATH_.'/controller/common/modules/head.php'; ?>
    <?php include 'modules/head.php'; ?>
</head>


<body>

<div id="topbar">
    <?php include ROOT_PATH_.'/controller/common/modules/topbar.php'; ?>
</div>

<div id="container" class="<? echo $system_part ?>">

    <div id="maincontent">

        <div id="sidebar">
            <?php include ROOT_PATH_.'/controller/common/modules/sidebar.php'; ?>
        </div>



<div id="content" class="layui-form">

	<h1> 派券列表 </h1>



<!-- 用$system_part .list_boxes来控制来到确认板块信息显示-->
<div class="list-box">


<div class="list-boxes">



<?php

if (count($_coupon_send_list) == 0) {
    echo "数据添加中";
}

?>

<table class="layui-table">
  <colgroup>
    <col width="60">
	<col >
	<col >
	<col >
	<col >
	<col >
  </colgroup>
  <thead>
    <tr>
        <th>序号</th>
        <th>优惠券名称</th>
        <th>用户</th>
        <th>数量</th>
        <th>创建时间</th>
        <th>发送时间</th>
    </tr>
  </thead>
  <tbody>


	<?php
	for ($i = 0; $i < count($_coupon_send_list); $i++) {
    ?>
    <tr id="item<?echo $detail[$i]['nid']?>" >
        <td><? echo $i+1+$plate['page_list_num']*($nowpageid-1) ?></td>
        <td><? echo $coupon[$_coupon_send_list[$i]['coupon_nid']]?></td>
        <td><? echo $member[$_coupon_send_list[$i]['member_nid']]?></td>
        <td><? echo $_coupon_send_list[$i]['coupon_number']?></td>
        <td><? echo $_coupon_send_list[$i]['add_date']?></td>
        <td><? echo $_coupon_send_list[$i]['send_date']?></td>
    </tr>
  <?php

}
?>

  </tbody>
</table>






</div>



    <div class="list-box-function"
        <? if ($detailnum == 0) {
            echo "style" . "='display:none'";
        } ?>
        >

        <?php include 'modules/page_numbers.php'; ?>

    </div>
</div>


<!--list-box end-->
</div>

<!--content端點01-->
</div>
<!--maincontent端點01-->
<br class="clearfloat"/>
</div>
<!--container端點01-->
</div>







<!--删除box-->
<?php include ROOT_PATH_.'/controller/common/modules/deletebar.php'; ?>
<!--删除box end-->

<?php include ROOT_PATH_."/controller/common/modules/footer.php"; ?>

asd
</body>
</html>
